package com.atguigu.adapter.bObjectAdapter;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:
 * @create: 2022-02-14 10:02
 **/
public class Client {
    public static void main(String[] args) {
        System.out.println("====对象适配器模式====");
        Phone phone = new Phone();
        //使用适配器进行充电
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
